package com.icourt.eslearn.dao;
import com.icourt.eslearn.entity.Customer;
import org.elasticsearch.cluster.ClusterState;
import org.springframework.context.annotation.Bean;
import org.springframework.data.elasticsearch.core.ElasticsearchTemplate;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Component;

import java.util.List;

public interface CustomerRepository extends ElasticsearchRepository<Customer, String> {


    List<Customer> findByLastName(String smith);

    List<Customer> findByFirstName(String alice);
}